<include file="Public:css_" />
</head>
<body>
	<div id="index">
		<div>
			<div class="top">
				<span class="pdlr br1">总积分</span><span class="pdlr">213371</span><span class="pdlr ufr" id="rule">查看积分规则></span>
			</div>
			<img src="{$Think.config.IMG_PATH}{$config.imgurl}" style="width:100%">
		</div>
		<div class="goods">
			<!-- 商品 start-->
            <volist name="list" id="val">
			<div class="good" onClick="detail({$val.id})">
				<div class="good-line bgw">
					<div>
						<span class="love c2">{$val.sale_total}人兑换</span>
						<img src="{$Think.config.IMG_PATH}{$val.imgurl}" class="img">
						<div class="shadow">
							<p>{$val.title}</p>
						</div>
					</div>
					<div class="pdtb">
						<span class="c1 ulev1">{$val.score}积分</span>&nbsp;&nbsp;<del class="c2">¥{$val.price}</del>
						<button class="btn"> 兑换</button>
					</div>
				</div>
			</div>
            </volist>
			<!-- 商品 end-->
		</div>
		<div class="rule-fade hide">
			<div class="rule">
				<div class="pdtb bb1"><span class="pdlr c3">积分规则</span><img src="{$Think.config.static_path}images/close-g.png" id="close"></div>
				<div class="content">
					<p>{$config.rule}</p>
				</div>
			</div>
		</div>
	</div>
</body>
<include file="Public:js_" />
<script type="text/javascript">
$("#rule").click(function(){
	$(".rule-fade").removeClass("hide")
})
$("#close").click(function(){
	$(".rule-fade").addClass("hide")
})	

function detail(id){
	location.href= '__URL__/desc?id='+id;
}
</script>
</html>